package ren.colorful.jikeshijian;

import java.lang.reflect.Field;

import org.junit.Test;

public class Demo {

	public final Integer info = 123;
	
	@Test
	public void test() throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException{
		Demo demo = new Demo();
		Field field = demo.getClass().getDeclaredField("info");
		field.setAccessible(true);
		field.set(demo, 789);
		System.out.println(field.get(demo));
		System.out.println(demo.info);
	}
}
